require.config({
    urlArgs: 'r=' + (new Date()).getTime(),
    paths: {
        'text': '../lib/require/text',
        'durandal': '../lib/durandal/js',
        'plugins': '../lib/durandal/js/plugins',
        'jquery': '../lib/jquery/jquery-1.9.1.min',
        'transitions': '../lib/durandal/js/transitions',
        'knockout': '../lib/knockout/knockout-3.4.0',
        'mapping': '../lib/knockout/knockout.mapping',
        'bootstrap': '../lib/bootstrap/js/bootstrap',
    },

    // 自动依赖
    // configuration dependencies
    deps: ['knockout', 'mapping'],
    // configuration callback
    // 自动依赖加载完成回调
    callback: function(ko, mapping) {
        ko.mapping = mapping;
    }
})

define(function(require) {
    var system = require('durandal/system'),
        app = require('durandal/app'),
        viewLocator = require('durandal/viewLocator');

    system.debug(true);

    app.title = '多模块测试';

    // viewLocator.useConvention();

    app.configurePlugins({
        router: true,
        dialog: true,
    })

    app.start().then(function() {
        app.setRoot('app/shell');
    })
});